package com.xsd.adapter.classAdapter;

/**
 * @Description: 适配器类
 * @Author: zhoufuzong
 * @Created: 2021-02-14 15:21:35
 * @Version: 1.1.0
 */

public class VolatageAdapter  extends Volatage220V implements IVolatage5V{

    @Override
    public int output5V() {
        // 获取220v 电压
        int srcV = outPut220V();
        int dest = srcV/44; // 转成5V;
        System.out.println("电压 switch finished ");
        return dest;
    }
}
